
import pandas as pd
from src.data_profilerx import DataProfiler, FeatureEngineer

if __name__ == "__main__":
    # 1. 加载数据
    df = pd.read_csv("customer_data.csv")
    
    # 2. 生成质量报告
    profiler = DataProfiler(df)
    print(profiler.generate_report())
    
    # 3. 自动化预处理
    cleaned_df = FeatureEngineer.preprocess(df)
    cleaned_df.to_parquet("cleaned_data.parquet")